/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package POJO;

/**
 *
 * @author kimloan
 */
public class VePOJO {

    //<editor-fold defaultstate="collapsed" desc="1. Thuộc tính">
    private int maVe;
    private int maGhe;
    private Double giaVe;
    private int soLuongVe;
    private int soLuongVeBan;
    private int trangThai;
    //</editor-fold>

    //<editor-fold defaultstate="collapsed" desc="2. Phương thức getter/setter">
    public Double getGiaVe() {
        return giaVe;
    }

    public void setGiaVe(Double giaVe) {
        this.giaVe = giaVe;
    }

    public int getMaGhe() {
        return maGhe;
    }

    public void setMaGhe(int maGhe) {
        this.maGhe = maGhe;
    }

    public int getMaVe() {
        return maVe;
    }

    public void setMaVe(int maVe) {
        this.maVe = maVe;
    }

    public int getSoLuongVe() {
        return soLuongVe;
    }

    public void setSoLuongVe(int soLuongVe) {
        this.soLuongVe = soLuongVe;
    }

    public int getSoLuongVeBan() {
        return soLuongVeBan;
    }

    public void setSoLuongVeBan(int soLuongVeBan) {
        this.soLuongVeBan = soLuongVeBan;
    }

    public int getTrangThai() {
        return trangThai;
    }

    public void setTrangThai(int trangThai) {
        this.trangThai = trangThai;
    }

    //</editor-fold>
    
    //<editor-fold defaultstate="collapsed" desc="3. Phương thức khởi tạo mặc định">
    public VePOJO() {
        this.maVe = -1;
        this.maGhe = 0;
        this.giaVe = 0.0;
        this.soLuongVe = 0;
        this.soLuongVeBan = 0;
        this.trangThai = 0;
    }
    //</editor-fold>

    //<editor-fold defaultstate="collapsed" desc="4. Phương thức khởi tạo đầy đủ tham số">
    public VePOJO(int id, int maghe, Double giave, int soluongve, int soluongveban, int trangthai) {
        this.maVe = id;
        this.maGhe = maghe;
        this.giaVe = giave;
        this.soLuongVe = soluongve;
        this.soLuongVeBan = soluongveban;
        this.trangThai = trangthai;
    }
//</editor-fold>

    //<editor-fold defaultstate="collapsed" desc="5. Phương thức khởi tạo sao chép">
    public VePOJO(VePOJO ve) {
        this.maVe = ve.maVe;
        this.maGhe = ve.maGhe;
        this.giaVe = ve.giaVe;
        this.soLuongVe = ve.soLuongVe;
        this.soLuongVeBan = ve.soLuongVeBan;
        this.trangThai = ve.trangThai;
    }
//</editor-fold>
}
